home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Keyboard
- BorderStyle = 0 'None
- Caption = "STAR Midi"
- ClientHeight = 3720
- ClientLeft = 3195
- ClientTop = 435
- ClientWidth = 10755
- Icon = "Piano.frx":0000
- KeyPreview = -1 'True
- LinkTopic = "Form1"
- MaxButton = 0 'False
- Picture = "Piano.frx":08CA
- ScaleHeight = 3720
- ScaleWidth = 10755
- StartUpPosition = 2 'CenterScreen
- Begin VB.Data Data1
- Caption = "Data1"
- Connect = "Access"
- DatabaseName = ""
- DefaultCursorType= 0 'DefaultCursor
- DefaultType = 2 'UseODBC
- Exclusive = 0 'False
- Height = 300
- Left = 8520
- Options = 0
- ReadOnly = 0 'False
- RecordsetType = 1 'Dynaset
- RecordSource = ""
- Top = 240
- Visible = 0 'False
- Width = 1575
- End
- Begin VB.CommandButton Command8
- Caption = "STANDBY"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 840
- TabIndex = 113
- Top = 1480
- Width = 735
- End
- Begin VB.TextBox Text2
- Height = 285
- Left = 5040
- TabIndex = 109
- Text = "Text2"
- Top = 240
- Visible = 0 'False
- Width = 735
- End
- Begin VB.CommandButton Command7
- Caption = "Del"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 4320
- TabIndex = 108
- Top = 1560
- Width = 375
- End
- Begin VB.CommandButton Command6
- Caption = "POWER"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 255
- Left = 840
- TabIndex = 107
- Top = 1200
- Width = 735
- End
- Begin VB.CommandButton Command5
- Caption = "Off"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 3840
- TabIndex = 106
- Top = 1560
- Visible = 0 'False
- Width = 375
- End
- Begin VB.CommandButton Command4
- Caption = "ON"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 3840
- TabIndex = 105
- Top = 1560
- Width = 375
- End
- Begin VB.VScrollBar tem
- Height = 975
- LargeChange = 10
- Left = 2640
- Max = 1000
- Min = 1
- TabIndex = 100
- Top = 720
- Value = 300
- Width = 135
- End
- Begin VB.CommandButton Command3
- Caption = "Stop"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 4800
- TabIndex = 99
- Top = 1560
- Visible = 0 'False
- Width = 375
- End
- Begin VB.Timer Timer2
- Left = 8040
- Top = 240
- End
- Begin VB.TextBox Text1
- DataField = "notes"
- DataSource = "Data1"
- Height = 285
- Left = 5880
- TabIndex = 98
- Text = "Text1"
- Top = 240
- Visible = 0 'False
- Width = 735
- End
- Begin VB.CommandButton Command2
- Caption = "Play"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 195
- Left = 4800
- TabIndex = 97
- Top = 1560
- Width = 375
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 15
- Left = 8880
- TabIndex = 79
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 14
- Left = 8640
- TabIndex = 78
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 13
- Left = 8400
- TabIndex = 77
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 12
- Left = 8160
- TabIndex = 76
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 11
- Left = 7920
- TabIndex = 75
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 10
- Left = 7680
- TabIndex = 74
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 9
- Left = 7440
- TabIndex = 73
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 8
- Left = 7200
- TabIndex = 72
- Top = 1440
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 7
- Left = 8880
- TabIndex = 71
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 6
- Left = 8640
- TabIndex = 70
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 5
- Left = 8400
- TabIndex = 69
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 4
- Left = 8160
- TabIndex = 68
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 3
- Left = 7920
- TabIndex = 67
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 2
- Left = 7680
- TabIndex = 66
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- Height = 135
- Index = 1
- Left = 7440
- TabIndex = 65
- Top = 1080
- Width = 135
- End
- Begin VB.CommandButton Command1
- BackColor = &H8000000B&
- Height = 135
- Index = 0
- Left = 7200
- TabIndex = 64
- Top = 1080
- Width = 135
- End
- Begin VB.Timer Timer1
- Interval = 500
- Left = 8040
- Top = 240
- End
- Begin VB.PictureBox Picture1
- BackColor = &H0000FF00&
- BorderStyle = 0 'None
- ForeColor = &H0000FF00&
- Height = 45
- Index = 1
- Left = 6720
- ScaleHeight = 45
- ScaleWidth = 135
- TabIndex = 63
- Top = 960
- Width = 135
- End
- Begin VB.PictureBox Picture1
- BackColor = &H00000000&
- BorderStyle = 0 'None
- Height = 45
- Index = 0
- Left = 6720
- ScaleHeight = 45
- ScaleWidth = 135
- TabIndex = 62
- Top = 880
- Width = 135
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 44
- Left = 7760
- Picture = "Piano.frx":61C2
- Style = 1 'Graphical
- TabIndex = 44
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 22
- Left = 4680
- Picture = "Piano.frx":6536
- Style = 1 'Graphical
- TabIndex = 22
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 46
- Left = 8040
- Picture = "Piano.frx":68AA
- Style = 1 'Graphical
- TabIndex = 46
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 49
- Left = 8490
- Picture = "Piano.frx":6C1E
- Style = 1 'Graphical
- TabIndex = 49
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 51
- Left = 8760
- Picture = "Piano.frx":6F92
- Style = 1 'Graphical
- TabIndex = 51
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 56
- Left = 9450
- Picture = "Piano.frx":7306
- Style = 1 'Graphical
- TabIndex = 57
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 23
- Left = 4695
- Picture = "Piano.frx":767A
- Style = 1 'Graphical
- TabIndex = 23
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 45
- Left = 7815
- Picture = "Piano.frx":7A3E
- Style = 1 'Graphical
- TabIndex = 45
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 50
- Left = 8550
- Picture = "Piano.frx":7E02
- Style = 1 'Graphical
- TabIndex = 50
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 47
- Left = 8055
- MouseIcon = "Piano.frx":81C6
- Picture = "Piano.frx":8318
- Style = 1 'Graphical
- TabIndex = 47
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 48
- Left = 8280
- Picture = "Piano.frx":86DC
- Style = 1 'Graphical
- TabIndex = 48
- Top = 2160
- Width = 270
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 58
- Left = 9720
- Picture = "Piano.frx":8AA0
- Style = 1 'Graphical
- TabIndex = 58
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 59
- Left = 9750
- Picture = "Piano.frx":8E14
- Style = 1 'Graphical
- TabIndex = 59
- Top = 2160
- Width = 260
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 60
- Left = 10000
- Picture = "Piano.frx":91D8
- Style = 1 'Graphical
- TabIndex = 60
- Top = 2160
- Width = 260
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 54
- Left = 9180
- Picture = "Piano.frx":959C
- Style = 1 'Graphical
- TabIndex = 54
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 53
- Left = 9030
- Picture = "Piano.frx":9910
- Style = 1 'Graphical
- TabIndex = 53
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 52
- Left = 8760
- Picture = "Piano.frx":9CD4
- Style = 1 'Graphical
- TabIndex = 52
- Top = 2160
- Width = 270
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 39
- Left = 7080
- Picture = "Piano.frx":A098
- Style = 1 'Graphical
- TabIndex = 39
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 57
- Left = 9510
- Picture = "Piano.frx":A40C
- Style = 1 'Graphical
- TabIndex = 56
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 55
- Left = 9240
- Picture = "Piano.frx":A7D0
- Style = 1 'Graphical
- TabIndex = 55
- Top = 2160
- Width = 270
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 42
- Left = 7500
- Picture = "Piano.frx":AB94
- Style = 1 'Graphical
- TabIndex = 42
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 43
- Left = 7575
- Picture = "Piano.frx":AF08
- Style = 1 'Graphical
- TabIndex = 43
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 41
- Left = 7335
- Picture = "Piano.frx":B2CC
- Style = 1 'Graphical
- TabIndex = 41
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 40
- Left = 7095
- Picture = "Piano.frx":B690
- Style = 1 'Graphical
- TabIndex = 40
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 37
- Left = 6800
- Picture = "Piano.frx":BA54
- Style = 1 'Graphical
- TabIndex = 37
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 38
- Left = 6855
- Picture = "Piano.frx":BDC8
- Style = 1 'Graphical
- TabIndex = 38
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 36
- Left = 6615
- Picture = "Piano.frx":C18C
- Style = 1 'Graphical
- TabIndex = 36
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 34
- Left = 6360
- Picture = "Piano.frx":C550
- Style = 1 'Graphical
- TabIndex = 34
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 35
- Left = 6375
- Picture = "Piano.frx":C8C4
- Style = 1 'Graphical
- TabIndex = 35
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 32
- Left = 6090
- Picture = "Piano.frx":CC88
- Style = 1 'Graphical
- TabIndex = 33
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 33
- Left = 6135
- Picture = "Piano.frx":CFFC
- Style = 1 'Graphical
- TabIndex = 32
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 30
- Left = 5810
- Picture = "Piano.frx":D3C0
- Style = 1 'Graphical
- TabIndex = 30
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 31
- Left = 5895
- Picture = "Piano.frx":D734
- Style = 1 'Graphical
- TabIndex = 31
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 29
- Left = 5655
- Picture = "Piano.frx":DAF8
- Style = 1 'Graphical
- TabIndex = 29
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 27
- Left = 5400
- Picture = "Piano.frx":DEBC
- Style = 1 'Graphical
- TabIndex = 27
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 28
- Left = 5415
- Picture = "Piano.frx":E230
- Style = 1 'Graphical
- TabIndex = 28
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 25
- Left = 5100
- Picture = "Piano.frx":E5F4
- Style = 1 'Graphical
- TabIndex = 25
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 26
- Left = 5175
- Picture = "Piano.frx":E968
- Style = 1 'Graphical
- TabIndex = 26
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 24
- Left = 4935
- Picture = "Piano.frx":ED2C
- Style = 1 'Graphical
- TabIndex = 24
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 20
- Left = 4400
- Picture = "Piano.frx":F0F0
- Style = 1 'Graphical
- TabIndex = 20
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 21
- Left = 4455
- Picture = "Piano.frx":F464
- Style = 1 'Graphical
- TabIndex = 21
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 15
- Left = 3710
- Picture = "Piano.frx":F828
- Style = 1 'Graphical
- TabIndex = 14
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- Height = 975
- Index = 18
- Left = 4120
- Picture = "Piano.frx":FB9C
- Style = 1 'Graphical
- TabIndex = 18
- Top = 2160
- Width = 165
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 19
- Left = 4215
- Picture = "Piano.frx":FF10
- Style = 1 'Graphical
- TabIndex = 19
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 17
- Left = 3975
- Picture = "Piano.frx":102D4
- Style = 1 'Graphical
- TabIndex = 17
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 16
- Left = 3735
- Picture = "Piano.frx":10698
- Style = 1 'Graphical
- TabIndex = 7
- Top = 2160
- Width = 240
- End
- Begin VB.VScrollBar vol
- Height = 975
- Left = 2280
- TabIndex = 15
- Top = 720
- Width = 135
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 13
- Left = 3390
- Picture = "Piano.frx":10A5C
- Style = 1 'Graphical
- TabIndex = 13
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 10
- Left = 2990
- Picture = "Piano.frx":10DD0
- Style = 1 'Graphical
- TabIndex = 12
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 8
- Left = 2720
- MousePointer = 99 'Custom
- Picture = "Piano.frx":11144
- Style = 1 'Graphical
- TabIndex = 11
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 6
- Left = 2420
- MouseIcon = "Piano.frx":114B8
- Picture = "Piano.frx":1160A
- Style = 1 'Graphical
- TabIndex = 10
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 3
- Left = 2030
- MouseIcon = "Piano.frx":1197E
- Picture = "Piano.frx":11AD0
- Style = 1 'Graphical
- TabIndex = 9
- Top = 2160
- Width = 160
- End
- Begin VB.CheckBox key
- BackColor = &H80000007&
- ForeColor = &H8000000E&
- Height = 975
- Index = 1
- Left = 1700
- MouseIcon = "Piano.frx":11E44
- Picture = "Piano.frx":11F96
- Style = 1 'Graphical
- TabIndex = 8
- Top = 2160
- Width = 165
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 14
- Left = 3495
- Picture = "Piano.frx":1230A
- Style = 1 'Graphical
- TabIndex = 6
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 12
- Left = 3255
- Picture = "Piano.frx":126CE
- Style = 1 'Graphical
- TabIndex = 5
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 11
- Left = 3015
- Picture = "Piano.frx":12A92
- Style = 1 'Graphical
- TabIndex = 4
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 9
- Left = 2775
- Picture = "Piano.frx":12E56
- Style = 1 'Graphical
- TabIndex = 3
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 7
- Left = 2535
- MouseIcon = "Piano.frx":1321A
- Picture = "Piano.frx":1336C
- Style = 1 'Graphical
- TabIndex = 2
- Top = 2160
- Width = 240
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 4
- Left = 2040
- MouseIcon = "Piano.frx":13730
- Picture = "Piano.frx":13882
- Style = 1 'Graphical
- TabIndex = 1
- Top = 2160
- Width = 250
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 2
- Left = 1815
- MouseIcon = "Piano.frx":13C46
- Picture = "Piano.frx":13D98
- Style = 1 'Graphical
- TabIndex = 0
- Top = 2160
- Width = 230
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 0
- Left = 1580
- MouseIcon = "Piano.frx":1415C
- Picture = "Piano.frx":142AE
- Style = 1 'Graphical
- TabIndex = 110
- Top = 2160
- Width = 230
- End
- Begin VB.CheckBox key
- BackColor = &H80000009&
- Height = 1575
- Index = 5
- Left = 2295
- MouseIcon = "Piano.frx":14672
- Picture = "Piano.frx":147C4
- Style = 1 'Graphical
- TabIndex = 111
- Top = 2160
- Width = 240
- End
- Begin VB.Line Line8
- X1 = 9120
- X2 = 9120
- Y1 = 840
- Y2 = 1080
- End
- Begin VB.Line Line7
- X1 = 7080
- X2 = 7080
- Y1 = 840
- Y2 = 1080
- End
- Begin VB.Line Line6
- X1 = 8400
- X2 = 9120
- Y1 = 840
- Y2 = 840
- End
- Begin VB.Line Line5
- X1 = 7920
- X2 = 7080
- Y1 = 840
- Y2 = 840
- End
- Begin VB.Line Line4
- X1 = 5280
- X2 = 5280
- Y1 = 1440
- Y2 = 1560
- End
- Begin VB.Line Line3
- X1 = 3720
- X2 = 3720
- Y1 = 1440
- Y2 = 1560
- End
- Begin VB.Line Line2
- X1 = 4800
- X2 = 5280
- Y1 = 1440
- Y2 = 1440
- End
- Begin VB.Line Line1
- X1 = 4320
- X2 = 3720
- Y1 = 1440
- Y2 = 1440
- End
- Begin VB.Label Label9
- BackStyle = 0 'Transparent
- Caption = "RECORD"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 4320
- TabIndex = 112
- Top = 1320
- Width = 495
- End
- Begin VB.Label Label8
- BackStyle = 0 'Transparent
- Caption = "-"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 2840
- TabIndex = 104
- Top = 1560
- Width = 135
- End
- Begin VB.Label Label7
- BackStyle = 0 'Transparent
- Caption = "-"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 2450
- TabIndex = 103
- Top = 1560
- Width = 135
- End
- Begin VB.Label Label6
- BackStyle = 0 'Transparent
- Caption = "+"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 2840
- TabIndex = 102
- Top = 720
- Width = 135
- End
- Begin VB.Label Label5
- BackStyle = 0 'Transparent
- Caption = "+"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 2450
- TabIndex = 101
- Top = 720
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "16"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 15
- Left = 8880
- TabIndex = 96
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "15"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 14
- Left = 8640
- TabIndex = 95
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "14"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 13
- Left = 8400
- TabIndex = 94
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "13"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 12
- Left = 8160
- TabIndex = 93
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "12"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 11
- Left = 7920
- TabIndex = 92
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "11"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 10
- Left = 7680
- TabIndex = 91
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "10"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 9
- Left = 7440
- TabIndex = 90
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "9"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 8
- Left = 7200
- TabIndex = 89
- Top = 1320
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "8"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 7
- Left = 8880
- TabIndex = 88
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "7"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 6
- Left = 8640
- TabIndex = 87
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "6"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 5
- Left = 8400
- TabIndex = 86
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "5"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 4
- Left = 8160
- TabIndex = 85
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "4"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 3
- Left = 7920
- TabIndex = 84
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "3"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 2
- Left = 7680
- TabIndex = 83
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "2"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 1
- Left = 7440
- TabIndex = 82
- Top = 960
- Width = 135
- End
- Begin VB.Label Label4
- BackStyle = 0 'Transparent
- Caption = "1"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Index = 0
- Left = 7200
- TabIndex = 81
- Top = 960
- Width = 135
- End
- Begin VB.Label Label3
- BackStyle = 0 'Transparent
- Caption = "Channels"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 7920
- TabIndex = 80
- Top = 720
- Width = 495
- End
- Begin VB.Label Label2
- BackColor = &H00000000&
- Caption = "Channel 1"
- ForeColor = &H000000FF&
- Height = 240
- Left = 4520
- TabIndex = 61
- Top = 880
- Width = 2320
- End
- Begin VB.Label Label1
- BackStyle = 0 'Transparent
- Caption = "VOL"
- BeginProperty Font
- Name = "Times New Roman"
- Size = 6
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- Height = 135
- Left = 2220
- TabIndex = 16
- Top = 520
- Width = 255
- End
- Begin VB.Image Image1
- Height = 3735
- Left = 0
- Picture = "Piano.frx":14B88
- Top = 0
- Width = 10785
- End
- Begin VB.Menu midi_about
- Caption = "menu"
- Visible = 0 'False
- Begin VB.Menu Midi_Piano
- Caption = "About MIDI PIANO"
- End
- Begin VB.Menu midi_devices
- Caption = "Midi Device"
- Begin VB.Menu device
- Caption = ""
- Index = 0
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 1
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 2
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 3
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 4
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 5
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 6
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 7
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 8
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 9
- Visible = 0 'False
- End
- Begin VB.Menu device
- Caption = ""
- Enabled = 0 'False
- Index = 10
- Visible = 0 'False
- End
- End
- End
- Attribute VB_Name = "Keyboard"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Const INVALID_NOTE = -1 ' Code for keyboard keys that we don't handle
- 'for database purpses
- Dim mbChangedByCode As Boolean
- Dim mvBookMark As Variant
- Dim mbEditFlag As Boolean
- Dim mbAddNewFlag As Boolean
- Dim mbDataChanged As Boolean
- Dim RecordStatus As Boolean
- 'for piano play
- Dim numDevices As Long ' number of midi output devices
- Dim curDevice As Long ' current midi device
- Dim hmidi As Long ' midi output handle
- Dim rc As Long ' return code
- Dim midimsg As Long ' midi output message buffer
- Dim channel As Integer ' midi output channel
- Dim volume As Integer ' midi volume
- Dim baseNote As Integer ' the first note on our "piano"
- Dim incra As Integer ' incrament the note
- Dim tempo As Integer ' set playing speed
- Dim incraup As Integer ' incra-1
- Dim curdr As String ' gets current directory
- Private Sub Command1_Click(Index As Integer)
- Label2.Caption = "Channel " & Index + 1
- channel = Index
- End Sub
- Private Sub Command2_Click()
- Call Command1_Click(0)
- Form_Load
- If Text1 = "" Then
- Exit Sub
- Else
- tempo = tem.Value
- Command4.Enabled = False
- Command7.Enabled = False
- Timer2.Interval = tempo
- Command2.Visible = False
- Command3.Visible = True
- 'Data1.Recordset.MoveFirst
- mbDataChanged = False
- RecordStatus = False
- End If
- incra = Text1
- End Sub
- Private Sub Command3_Click()
- For incra = 0 To 60
- key(incra).Value = 0
- Next incra
-
- Command4.Enabled = True
- Command7.Enabled = True
- Timer2.Interval = 0
- rc = midiOutClose(hmidi)
- Form_Load
- Command3.Visible = False
- Command2.Visible = True
- End Sub
- Private Sub Command4_Click()
- Command2.Enabled = False
- Command7.Enabled = False
- Command4.Visible = False
- Command5.Visible = True
- mbDataChanged = False
- RecordStatus = True
- End Sub
- Private Sub Command5_Click()
- RecordStatus = False
- Command4.Visible = True
- Command5.Visible = False
- Command2.Enabled = True
- Command7.Enabled = True
- End Sub
- Private Sub Command6_Click()
- Unload Me
- End Sub
- Private Sub Command7_Click()
- If Text1 = "" Then
-
- Exit Sub
- Else
- Data1.Recordset.MoveFirst
- Do Until Data1.Recordset.EOF
-
- Data1.Recordset.Delete
- Data1.Recordset.MoveNext
- Loop
- End If
- End Sub
- Private Sub Command8_Click()
- Keyboard.WindowState = 1
- End Sub
- ' Open the midi device selected in the menu. The menu index equals the
- ' midi device number + 1.
- Private Sub device_Click(Index As Integer)
- device(curDevice + 1).Checked = False
- device(Index).Checked = True
- curDevice = Index - 1
- rc = midiOutClose(hmidi)
- rc = midiOutOpen(hmidi, curDevice, 0, 0, 0)
- If (rc <> 0) Then
-
- MsgBox "Couldn't open midi out, rc = " & rc
- End If
- End Sub
- ' If user presses a keyboard key, start the corresponding midi note
- Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
- StartNote NoteFromKey(KeyCode)
- End Sub
- ' If user lifts a keyboard key, stop the corresponding midi note
- Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
- StopNote NoteFromKey(KeyCode)
- End Sub
- Private Sub Form_Load()
- Dim I As Long
- Dim caps As MIDIOUTCAPS
- curdr = CurDir
- Data1.DatabaseName = curdr & "\music.mde"
- Data1.RecordSource = "song"
- ' Set the first device as midi mapper
- device(0).Caption = "MIDI Mapper"
- device(0).Visible = True
- device(0).Enabled = True
- ' Get the rest of the midi devices
- numDevices = midiOutGetNumDevs()
- For I = 0 To (numDevices - 1)
- midiOutGetDevCaps I, caps, Len(caps)
- device(I + 1).Caption = caps.szPname
- device(I + 1).Visible = True
- device(I + 1).Enabled = True
- Next
- ' Select the MIDI Mapper as the default device
- device_Click (0)
- ' Set the default channel
- channel = 0
- ' Set the base note
- baseNote = 20
- ' Set volume range
- volume = 127
- vol.Min = 127
- vol.Max = 0
- vol.Value = volume
- End Sub
- Private Sub Form_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 2 Then ' Check if right mouse button
- ' was clicked.
- PopupMenu midi_about ' Display the File menu as a
- ' pop-up menu.
- End If
- End Sub
- Private Sub Form_Unload(Cancel As Integer)
- ' Close current midi device
- rc = midiOutClose(hmidi)
- End Sub
- Private Sub Image1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As Single)
- If Button = 2 Then ' Check if right mouse button
- ' was clicked.
- PopupMenu midi_about ' Display the File menu as a
- ' pop-up menu.
- End If
- End Sub
- ' Start a note when user click on it
- Private Sub key_MouseDown(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- StartNote (Index)
- End Sub
- ' Stop the note when user lifts the mouse button
- Private Sub key_MouseUp(Index As Integer, Button As Integer, Shift As Integer, X As Single, Y As Single)
- StopNote (Index)
- End Sub
- ' Press the button and send midi start event
- ' midimsg advances by 256
- ' Channels icrement midimsg by 1
- Private Sub StartNote(Index As Integer)
- If (Index = INVALID_NOTE) Then
-
- Exit Sub
- End If
- If (key(Index).Value = 1) Then
- Exit Sub
- End If
- If RecordStatus Then
-
- key(Index).Value = 1
- midimsg = &H90 + ((baseNote + Index) * &H100) + (volume * &H10000) + channel
- midiOutShortMsg hmidi, midimsg
- Data1.Recordset.AddNew
- mbAddNewFlag = True
- Text1 = Index
-
- Else
- key(Index).Value = 1
- midimsg = &H90 + ((baseNote + Index) * &H100) + (volume * &H10000) + channel
- midiOutShortMsg hmidi, midimsg
- End If
- End Sub
- ' Raise the button and send midi stop event
- Private Sub StopNote(Index As Integer)
- On Error GoTo UpdateErr
- If (Index = INVALID_NOTE) Then
-
- Exit Sub
- End If
- If RecordStatus Then
- 'Data1.Recordset.Update
- If mbAddNewFlag Then
- 'Data1.Recordset.MoveLast 'move to the new record
- End If
- mbEditFlag = False
- mbAddNewFlag = False
- mbDataChanged = False
- key(Index).Value = 0
- midimsg = &H80 + ((baseNote + Index) * &H100) + channel
- midiOutShortMsg hmidi, midimsg
- Else
- key(Index).Value = 0
- midimsg = &H80 + ((baseNote + Index) * &H100) + channel
- midiOutShortMsg hmidi, midimsg
- Exit Sub
- UpdateErr:
- MsgBox Err.Description
- End If
- End Sub
- ' Get the note corresponding to a keyboard key
- Private Function NoteFromKey(key As Integer)
- NoteFromKey = INVALID_NOTE
- Select Case key
- Case vbKey1
- NoteFromKey = 0
- End Select
- End Function
- Private Sub Midi_Piano_Click()
- Splash.Show
- Splash.Command1.Visible = True
- End Sub
- Private Sub tem_Change()
- tempo = tem.Value
- If Command3.Visible = True Then
- Timer2.Interval = tempo
- Else
- Exit Sub
- End If
- End Sub
- Private Sub Timer1_Timer()
- If Picture1(0).BackColor = &HFF& Then
- Picture1(0).BackColor = &H80000012
- Picture1(1).BackColor = &HFF00&
- Else
-
- Picture1(0).BackColor = &HFF&
- Picture1(1).BackColor = &H0&
- End If
- End Sub
- Private Sub Timer2_Timer()
- key(incraup).Value = 0
- If incra > 60 Then
- incra = 0
- Exit Sub
- End If
- If (incra = INVALID_NOTE) Then
-
- Exit Sub
- End If
- key(incra).Value = 1
- midimsg = &H90 + ((baseNote + incra) * &H100) + (volume * &H10000) + channel
- midiOutShortMsg hmidi, midimsg
- incraup = incra
- If Data1.Recordset.EOF Then
- Data1.Recordset.MoveFirst
- Else
-
- Data1.Recordset.MoveNext
- If Text1 = "" Then
- Data1.Recordset.MoveFirst
- End If
- incra = Text1
- Text2 = incra
- End If
- End Sub
- ' Set the volume
- Private Sub vol_Change()
- volume = vol.Value
- End Sub
- Private Sub Data1_Validate(Action As Integer, Save As Integer)
- 'This is where you put validation code
- 'This event gets called when the following actions occur
- Select Case Action
- Case vbDataActionMoveFirst
- Case vbDataActionMovePrevious
- Case vbDataActionMoveNext
- Case vbDataActionMoveLast
- Case vbDataActionAddNew
- Case vbDataActionUpdate
- Case vbDataActionDelete
- Case vbDataActionFind
- Case vbDataActionBookmark
- Case vbDataActionClose
- End Select
- Screen.MousePointer = vbHourglass
- End Sub
- Private Sub Data1_Reposition()
- Screen.MousePointer = vbDefault
- On Error Resume Next
- 'This will display the current record position
- 'for dynasets and snapshots
- 'Data1.Caption = "Record: " & (Data1.Recordset.AbsolutePosition + 1)
- 'for the table object you must set the index property when
- 'the recordset gets created and use the following line
- 'Data1.Caption = "Record: " & (Data1.Recordset.RecordCount * (Data1.Recordset.PercentPosition * 0.01)) + 1
- End Sub
- Private Sub Data1_Error(DataErr As Integer, Response As Integer)
- 'This is where you would put error handling code
- 'If you want to ignore errors, comment out the next line
- 'If you want to trap them, add code here to handle them
- MsgBox "Data error event hit err:" & Error$(DataErr)
- Response = 0 'throw away the error
- End Sub
-